Skip to content

port test_sharedarraybuffer to CTS#46

Open
bavulapati wants to merge 15 commits intonodejs:mainfrom
bavulapati:feat/port-test-sharedarraybuffer
Open

port test_sharedarraybuffer to CTS#46
bavulapati wants to merge 15 commits intonodejs:mainfrom
bavulapati:feat/port-test-sharedarraybuffer

Conversation

@bavulapati
Copy link
Copy Markdown
Contributor

ports [test_sharedarraybuffer] from the Node.js test suite to the CTS.

Comment thread CMakeLists.txt
function(add_node_api_cts_experimental_addon ADDON_NAME)
cmake_parse_arguments(PARSE_ARGV 1 ARG "" "" "SOURCES")
add_node_api_cts_addon(${ADDON_NAME} ${ARG_SOURCES})
add_node_api_cts_addon(${ADDON_NAME} ${ARGN})
Copy link
Copy Markdown
Contributor Author

@bavulapati bavulapati Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is same as in #39

@bavulapati
Copy link
Copy Markdown
Contributor Author

@legendecas Fixed the CI issue. Can we run the tests again?

Comment thread implementors/node/process.js Outdated
Comment on lines +1 to +5
const napiVersion = Number(process.versions.napi);

const skipTest = () => {
process.exit(0);
};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this needs a rebase.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can delete this file entirely now, right?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is redundant with #56 landed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@kraenhansen kraenhansen moved this from Need Triage to In Progress in Node-API Team Project Apr 26, 2026
ports [test_sharedarraybuffer] from the Node.js test suite to the CTS.

Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
@bavulapati bavulapati force-pushed the feat/port-test-sharedarraybuffer branch from 6b9020e to b3b277d Compare April 26, 2026 13:01
@bavulapati bavulapati requested a review from kraenhansen April 26, 2026 13:05
@legendecas
Copy link
Copy Markdown
Member

Would you mind rebasing the PR? Thanks!

@bavulapati
Copy link
Copy Markdown
Contributor Author

Would you mind rebasing the PR? Thanks!

Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
@bavulapati bavulapati requested a review from legendecas April 27, 2026 06:10
Comment thread implementors/node/tests.ts Outdated
assert(
typeof import.meta.dirname === "string",
"Expecting a recent Node.js runtime API version"
"Expecting a recent Node.js runtime API version",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind removing these unrelated changes? This would cause unnecessary merge conflicts.

@legendecas
Copy link
Copy Markdown
Member

Generally LGTM, thanks!

Copy link
Copy Markdown
Contributor Author

@bavulapati bavulapati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove unrelated changes

Comment thread implementors/node/tests.ts Outdated
Comment thread implementors/node/tests.ts Outdated
Comment thread implementors/node/tests.ts Outdated
Comment thread implementors/node/tests.ts Outdated
Comment thread implementors/node/tests.ts Outdated
Comment thread implementors/node/tests.ts Outdated
Comment thread implementors/node/tests.ts Outdated
Comment thread implementors/node/tests.ts Outdated
Comment thread implementors/node/tests.ts Outdated
Comment thread implementors/node/tests.ts Outdated
@bavulapati bavulapati requested a review from legendecas April 29, 2026 09:25
"node",
"gc.js"
);
const GC_MODULE_PATH = path.join(ROOT_PATH, "implementors", "node", "gc.js");
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this change necessary?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm using prettier. That's creating these diff.
Should we use prettier or similar?
If so, can you point me to a repo where we do similar formatting to pick the rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants